import { defineStore } from 'pinia'

export const layoutTagsStore = defineStore('layoutTags', () => {
    let list = ref([
        {
            title: '首页',
            path: '/index',
        },
    ])
    let layoutKey = ref(0)
    let isChange = ref(true)
    const changeLayoutKey = () => {
        if (isChange.value) {
            layoutKey.value += 1
            isChange.value = false
        }
    }
    return {
        list,
        layoutKey,
        isChange,
        changeLayoutKey
    }
})
